package com.jic.order.mapper;

import com.jic.order.entity.OrderManualDelivery;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 订单手动转交货表
 *
 * @author :
 * @version : v1.0.0
 * @email :
 * @since : 2020-05-28 01:53:34
 */
@Mapper
public interface OrderManualDeliveryMapper {

  long insert(OrderManualDelivery orderManualDelivery);

  long delete(Long id);

  long update(OrderManualDelivery orderManualDelivery);

  /**
   * description: 根据订单号查询所有ID
   *
   * @author: jackHe
   * @time: 2020/6/2 18:46
   */
  List<Long> queryById(@Param("orderNo")String orderNo);

  List<OrderManualDelivery> query(OrderManualDelivery orderManualDelivery);

  long queryByOrderNoAndProductId(@Param("orderNo")String orderNo,@Param("productId")Long productId);

  List<OrderManualDelivery> queryPage(@Param("startIndex") int startIndex, @Param("limit") int limit,
      @Param("orderManualDelivery") OrderManualDelivery orderManualDelivery);

  long queryPageCount(OrderManualDelivery orderManualDelivery);
}